<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	String ctx = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ ctx + "/";

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>register</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<%--<script type="text/javascript">
			var action=${action};
			if(action==''){
				${action}='add';
			}
		</script>--%>
	</head>
	<body>
		<h3>
			注册个人通讯录
		</h3>
		<form action="<%=ctx%>/contact/add" method="post">
			<table>
				<tr>
					<td align="right">
						姓名：
					</td>
					<td>
						<input name="name">
					</td>
				</tr>
				<tr>
					<td align="right">
						性别：
					</td>
					<td>
						男
						<input type="radio" name="sex" value="M">
						女
						<input type="radio" name="sex" value="F">
					</td>
				</tr>
				<tr>
					<td align="right">
						学号：
					</td>
					<td>
						<input name="stuid">
					</td>
				</tr>
				<tr>
					<td align="right">
						班级：
					</td>
					<td>
						<select name="classInfo.id">
							<option value="1">
								计软1201
							</option>
							<option value="2">
								计软1202
							</option>
							<option value="3">
								计软1203
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right">
						手机号码：
					</td>
					<td>
						<input name="mobile">
					</td>
				</tr>
				<tr>
					<td align="right">
						电子邮件：
					</td>
					<td>
						<input name="email">
					</td>
				</tr>
				<tr>
					<td align="right">
						QQ号码：
					</td>
					<td>
						<input name="qq">
					</td>
				</tr>

				<tr>
					<td>
					</td>
					<td>
						<input type="submit" value="注册">
						<input type="reset" value="重置">
					</td>
				</tr>
			</table>
		</form>
		<div>
		    返回<a href="contactServlet">主页面</a>
		</div>
	</body>
</html>
